﻿# CMakeList.txt: CMakeProject1 的 CMake 项目，在此处包括源代码并定义
# 项目特定的逻辑。
#

# 将源代码添加到此项目的可执行文件。

find_package(QT NAMES Qt6 REQUIRED COMPONENTS Widgets)
find_package(Qt6 REQUIRED COMPONENTS Widgets)

set(ui_files 
"CommConversion.ui"
"CommConversion.h"
"CommConversion.cpp"
"ChannelWidget.ui"
"ChannelWidget.h"
"ChannelWidget.cpp"
"BaseDlg.h"
"BaseDlg.cpp"
"BaseDlg.ui"

"ChannelView.h"
"ChannelView.cpp"

"TCPServerDlg.cpp"
"TCPServerDlg.h"
"TCPServerDlg.ui"

"FileDirDlg.cpp"
"FileDirDlg.h"
"FileDirDlg.ui"

"UDPDlg.cpp"
"UDPDlg.h"
"UDPDlg.ui"

"TCPClientDlg.cpp"
"TCPClientDlg.h"
"TCPClientDlg.ui"

"Note.cpp"
"Note.h"
"Note.ui"

"DataTypeDlg.h"
"DataTypeDlg.cpp"
"DataTypeDlg.ui"
)

add_custom_command(OUTPUT AppRc COMMAND rcc ${CMAKE_CURRENT_LIST_DIR}/Application.qrc -o ${CMAKE_CURRENT_LIST_DIR}/AppRc.cpp DEPENDS ${CMAKE_CURRENT_LIST_DIR}/Application.qrc VERBATIM)

add_executable (ComnConversion 
"Application.qrc"
"Application.h"
"Application.cpp"
"Main.cpp"
"cfg.h"
"Config.h"
"Config.cpp"
"Log.h"
"Log.cpp"
"SocketSystem.h"
"SocketSystem.cpp"
"qhexview.cpp"
"qhexview.h"
"Channels.h"
"Channels.cpp"
${ui_files} )

target_link_libraries(ComnConversion PRIVATE dxgi event_core_static Qt6::Widgets nlohmann_json spdlog::spdlog)

# TODO: 如有需要，请添加测试并安装目标。
set_target_properties(ComnConversion PROPERTIES
    AUTOMOC ON
    AUTOUIC ON
    AUTORCC ON
)